#ifndef CHARACTERCLASSTABLEMODEL_H
#define CHARACTERCLASSTABLEMODEL_H


#include "dtwenty_global.h"
#include "dtwenty.h"


#include <QAbstractTableModel>
#include <QPointer>


class DTWENTYSHARED_EXPORT CharacterClassTableModel : public QAbstractTableModel
{
    Q_OBJECT
public:

    explicit CharacterClassTableModel(QObject *parent = 0);
    explicit CharacterClassTableModel(CharacterClass* characterClass, QObject* parent = 0);

    virtual int rowCount(const QModelIndex &parent) const;
    virtual int columnCount(const QModelIndex &parent) const;

    virtual QVariant data(const QModelIndex &index, int role) const;
    virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;

    
signals:
    
public slots:


protected:

    QPointer<CharacterClass> _character;


};

#endif // CHARACTERCLASSTABLEMODEL_H
